package com.cmc.cloud.cmclink.doc.api.document.rep;

import com.cmes.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static com.cmes.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
 * 提单箱况备案分页 Request VO
 *
 * @author codegen
 */
@Schema(description = "管理后台 - 提单箱况备案分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
public class BlnoCntrRecordationPageDto extends PageParam {

    @Schema(description = "提单号")
    private String blno;

    @Schema(description = "箱号")
    private String cntrNo;

    @Schema(description = "备注", example = "你说的对")
    private String remark;

    @Schema(description = "文件名", example = "张三")
    private String fileName;

    @Schema(description = "文件大小")
    private Integer fileSize;

    @Schema(description = "文件资源id", example = "32690")
    private Long fileId;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}
